package com.zy.pojo;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2021/6/2
 * Time: 下午 14:03
 * Description: 返回数据类
 */
public class ResultInfo {
    private Integer code;
    private String message;
    private Object data;

    public ResultInfo() {
    }

    public ResultInfo(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResultInfo{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}